<template>
	<div class="decorate-editor">
    <div :class="['fulltext']" v-html="fulltext"></div>
  </div>
</template>

<script>
/* eslint-disable */
import { skinExplain } from '@/api/dz/aiDzApi'

  // import Vue from 'vue'
  // 全局注册
  export default {
    data() {
      return {
        id: 1,
        fulltext: ''
      }
    },
    mounted() {
      this.getProtocolContent()
    },
    methods: {
      getProtocolContent() {
        skinExplain().then(res => {
          if (res.status === 1) {
            // console.log(res)
            this.fulltext = res.data
          }
        })
      }
    }
  }
</script>

<style lang="scss">
.decorate-editor{
  background: #fff;
  box-sizing: border-box;
  padding: 25px;
  box-sizing: border-box;
  max-width: 100vw;
  width: 100vw;
  overflow-x: hidden;
  .fulltext {
    word-break: break-all;
    i,
    em {
      font-style: italic;
      font-weight:inherit;
    }
    strong{
      font-style: inherit;
      font-weight:bold;
    }
    p {
      font-size: 34px;
      /*margin:5px 0;*/
      // color: #333;
      line-height: 56px;
    }
    table {
      width: 100% !important;
      height: auto !important;
    }
    img {
      max-width: 100% !important;
      height: auto;
    }
    h1,
    h2 {
      font-weight: bold;
      padding: 38px 0;
    }
    h1 {
      font-size: 64px;
    }
    h2 {
      font-size: 48px;
    }
    ul, ol {
      width:95%;
      padding-left:5%;
    }
    li{
      list-style-id: inherit;
    }
  }
}
</style>
